This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
zmiao
commented
Feb 26, 2020
•
edited
Loading
edited
- Fix error within decision when point is on Polygon line
- This patch will allow different geojson variants to be used as arguments of within expression, like
zmiao
force-pushed
the
zmiao-within-support-different-geojson
branch
from
February 26, 2020 11:21
aa97495
to
2d3d22f
Compare
zmiao
changed the title
[core] Make within expression support generic geoJSON data
[core] Fix within expression
Feb 28, 2020
zmiao
force-pushed
the
zmiao-within-support-different-geojson
branch
2 times, most recently
from
March 4, 2020 09:41
277199e
to
2d18b5f
Compare
pozdnyakov
reviewed
Mar 4, 2020
zmiao
force-pushed
the
zmiao-within-support-different-geojson
branch
from
March 4, 2020 21:55
554a6c1
to
6f794f8
Compare
zmiao
added
the
needs changelog
Indicates PR needs a changelog entry prior to merging.
label
Mar 4, 2020
pozdnyakov
approved these changes
Mar 5, 2020
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM % comments
src/mbgl/style/expression/within.cpp
Outdated
ctx.error("'within' expression requires valid geojson source that contains polygon geometry type."); | ||
return nullopt; | ||
} | ||
|
||
struct PolygonInfo { | ||
PolygonInfo(const Feature::geometry_type& geometry_, const WithinBBox& bbox_) : geometry(geometry_), bbox(bbox_){}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PolygonInfo(Feature::geometry_type geometry_) : geometry(std::move(geometry_)), bbox(calculateBBox(geometry))
zmiao
force-pushed
the
zmiao-within-support-different-geojson
branch
from
March 5, 2020 15:38
6f794f8
to
43e39ad
Compare
zmiao
force-pushed
the
zmiao-within-support-different-geojson
branch
from
March 5, 2020 17:47
266c1ad
to
bbb3449
Compare
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.